home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3436 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  38 lines

  1. Newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
  2. Path: bunyip.cc.uq.oz.au!un!news
  3. From: al012@svtstu.seqeb.gov.au (Anthony Lee)
  4. Subject: When should I close a file?
  5. X-Nntp-Posting-Host: 147.209.150.100
  6. Message-ID: <DLx4tF.Hs0@un.seqeb.gov.au>
  7. Sender: news@un.seqeb.gov.au (USENET News System)
  8. Organization: Your Organization
  9. X-Newsreader: WinVN 0.93.14
  10. Mime-Version: 1.0
  11. Date: Mon, 29 Jan 1996 01:15:13 GMT
  12.  
  13. I have a C program in ULTRIX and OSF.
  14.  
  15. The program inputs lines of data representing coordinates of lightning
  16. strikes.  The program records the data arrival time and translates
  17. the coordinates (for plotting).  
  18.  
  19. The datafile can remain open for days before a strike is recorded.
  20. Or in a storm many strikes can arrive within a few seconds.
  21.  
  22. My question is, if the program run continuously then how often
  23. should I close the file as oppose to just saving it?
  24.  
  25. Thank you
  26. -- 
  27. Anthony Lee        These are my opinions and not SEQEB.
  28. SEQEB                                            
  29. 150 Charlotte Street                   ..--  __o 
  30. Brisbane                          ....--   _ \<,_               
  31. Qld 4000                         ____     (_)/ (_)                       
  32.   
  33. Australia
  34. voice:+61 7 3407 4541            Death to the Daleks!!!!
  35. fax:  +61 7 3407 4607
  36. email: AL012@svtstu.seqeb.gov.au
  37.  
  38.